package org.shilong.UI.Test;

import org.shilong.UI.R;
import org.shilong.UI.friend.FriendCenterFrame;
import org.shilong.UI.party.BrandPartyCenterFrame;
import org.shilong.UI.profile.MyProfileFrame;
import org.shilong.Utility.IntentUtility;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class TestModelFrame extends Activity {
	
	Button proflileButton,partyButton,friendButton;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		
		setContentView( R.layout.test_layout );
		
		initViews();
		
		registerEvents();
	
	}
	
	void initViews(){
		
		proflileButton = (Button)this.findViewById(R.id.button1 );
		
		partyButton = (Button)this.findViewById(R.id.button2 );
		
		friendButton = (Button)this.findViewById(R.id.button3 );
	}
	
	void registerEvents(){
		
		proflileButton.setOnClickListener( new View.OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				
				IntentUtility.goNextFrame( TestModelFrame.this, MyProfileFrame.class, null );
				
				
			}
		});
		
		
		partyButton.setOnClickListener( new View.OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				
				IntentUtility.goNextFrame( TestModelFrame.this, BrandPartyCenterFrame.class, null );
				
			}
		});
		
		
		friendButton.setOnClickListener( new View.OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				
				IntentUtility.goNextFrame( TestModelFrame.this, FriendCenterFrame.class, null );
				
			}
		});
	}
	
}
